import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqRechargeNumTargetPlayerRewardHelper } from "./SeqRechargeNumTargetPlayerRewardHelper";
type int = number;
//class SRechargeNumTargetPlayerInfo
    
    export  class SRechargeNumTargetPlayerInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SRechargeNumTargetPlayerInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.process);
            arg1.writeDate(this.endDate);
            arg1.writeBool(this.hasRecharged);
            SeqRechargeNumTargetPlayerRewardHelper.write(arg1, this.rewardState);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.process = arg1.readInt();
            this.endDate = arg1.readDate();
            this.hasRecharged = arg1.readBool();
            this.rewardState = SeqRechargeNumTargetPlayerRewardHelper.read(arg1);
            return;
        }

        public /* const */_type: int=12399;

        public /* var */process: int;

        public /* var */endDate: Date;

        public /* var */hasRecharged: Boolean;

        public /* var */rewardState: Array<any>;

        public static /* var */_regist: SRechargeNumTargetPlayerInfo;
    }

            SRechargeNumTargetPlayerInfo._regist = new SRechargeNumTargetPlayerInfo(true);
        